import fetch from 'common/src/utils/fetch';

const pageUrl =
    '/api/electionservice/graduateMonitorTeacher/listGraduateMonitorTeacher';
/**
 *新增
 */
function add(data) {
    return fetch({
        url:
            '/api/electionservice/graduateMonitorTeacher/addGraduateMonitorTeacher',
        method: 'post',
        data: data
    });
}

/**
 *编辑
 */
function edit(data) {
    return fetch({
        url:
            '/api/electionservice/graduateMonitorTeacher/editGraduateMonitorTeacher',
        method: 'post',
        data: data
    });
}

/**
 *删除
 */
function del(data) {
    return fetch({
        url:
            '/api/electionservice/graduateMonitorTeacher/deleteGraduateMonitorTeacher',
        method: 'post',
        data: data
    });
}

/**
 *获取监考老师数量
 */
function getMonitotTeacherNumber(roomCapcity) {
    return fetch({
        url:
            '/api/electionservice/graduateMonitorTeacher/getMonitotTeacherNumber?roomCapcity=' +
            roomCapcity,
        method: 'get'
    });
}

/* 列表

function listGraduateMonitorTeacher(data) {
    return fetch({
        url: '/api/electionservice/graduateAuth/listGraduateMonitorTeacher',
        method: 'post',
        data: data
    });
} */

export default {
    add: add,
    edit: edit,
    del: del,
    pageUrl: pageUrl,
    getMonitotTeacherNumber: getMonitotTeacherNumber
};
